package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ApiPostsCommentMapper;
import com.platform.entity.PostsCommentVo;

/**
 * 帖子评论表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-03 11:24:16
 */
@Service 
public class ApiPostsCommentService   {
    @Autowired
    private ApiPostsCommentMapper postsCommentDao;

    
    public PostsCommentVo queryObject(Integer id) {
        return postsCommentDao.queryObject(id);
    }

    
    public List<PostsCommentVo> queryList(Map<String, Object> map) {
        return postsCommentDao.queryList(map);
    }

    
    public int queryTotal(Map<String, Object> map) {
        return postsCommentDao.queryTotal(map);
    }

    
    public int save(PostsCommentVo postsComment) {
        return postsCommentDao.save(postsComment);
    }

    
    public int update(PostsCommentVo postsComment) {
        return postsCommentDao.update(postsComment);
    }

    
    public int delete(Integer id) {
        return postsCommentDao.delete(id);
    }

    
    public int deleteBatch(Integer[]ids) {
        return postsCommentDao.deleteBatch(ids);
    }
}
